<!DOCTYPE html>
<!--
This is a starter template page. Use this page to start your new project from
scratch. This page gets rid of all links and provides the needed markup only.
-->
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="common :: header('票据详情')"/>
</head>
<body class="hold-transition layout-top-nav">
<div class="wrapper">

    <!-- Navbar -->
    <th:block th:include="common :: navbar"/>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <div class="content-header">
            <div class="container">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1 class="m-0 text-dark">票据详情</h1>
                    </div><!-- /.col -->
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a th:href="${#httpServletRequest.getContextPath()}">首页</a></li>
                            <li class="breadcrumb-item active">票据详情</li>
                        </ol>
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content-header -->


        <!-- Main content -->
        <div class="content">
            <div class="container">
                <div class="row">
                    <div class="col-lg-10 col-12 offset-1">
                        <div class="card card-primary">
                            <!-- /.card-header -->
                            <!-- form start -->
                            <form id="send-form" role="form" action="">
                                <div class="card-body">
                                    <div class="form-group row">
                                        <label for="issuer" class="col-sm-2 col-form-label">发布者</label>
                                        <div class="col-sm-10">
                                            <input id="issuer" name="issuer" class="form-control" readonly th:value="${issuer}">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="owner" class="col-sm-2 col-form-label">拥有者</label>
                                        <div class="col-sm-10">
                                            <input id="owner" name="owner" class="form-control" readonly th:value="${owner}">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="paperNumber" class="col-sm-2 col-form-label">票据号</label>
                                        <div class="col-sm-10">
                                            <input id="paperNumber" name="paperNumber" class="form-control" readonly th:value="${paperNumber}">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="faceValue" class="col-sm-2 col-form-label">票面金额</label>
                                        <div class="col-sm-10">
                                            <input id="faceValue" name="faceValue" class="form-control" readonly th:value="${faceValue}">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="issueDateTime" class="col-sm-2 col-form-label">发布日期</label>
                                        <div class="col-sm-10">
                                            <input id="issueDateTime" name="issueDateTime" class="form-control" readonly th:value="${issueDateTime}">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="maturityDateTime" class="col-sm-2 col-form-label">结束日期</label>
                                        <div class="col-sm-10">
                                            <input id="maturityDateTime" name="maturityDateTime" class="form-control" readonly th:value="${maturityDateTime}">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="state" class="col-sm-2 col-form-label">状态</label>
                                        <div class="col-sm-10">
                                            <input id="state" name="state" class="form-control" readonly th:value="${state}">
                                        </div>
                                    </div>
                                    <div class="form-group row">
                                        <label for="key" class="col-sm-2 col-form-label">票据Key</label>
                                        <div class="col-sm-10">
                                            <input id="key" name="key" class="form-control" readonly th:value="${key}">
                                        </div>
                                    </div>
                                </div>
                                <!-- /.card-body -->
                            </form>
                        </div>
                    </div><!-- ./col -->
                </div><!-- ./row -->
            </div><!-- /.container-fluid -->
        </div>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <th:block th:include="common :: footer"/>
</div>
<!-- ./wrapper -->

<!-- REQUIRED SCRIPTS -->
<th:block th:include="common :: commonJs"/>
<script th:inline="javascript">
    function send(){
        $.operate.post(ctx+"/issue/send",$("#send-form").serializeArray(),function (result){

        });
    }
</script>
</body>
</html>
